﻿@model Webcar.Entitys.bs_gps_summary

@{ Layout = "~/Views/Shared/_leftPanelLayout.cshtml";}
@section LeftTree
{
    @{
        Html.RenderPartial("DeptTreePartialView", new Webcar.Models.DeptTreeMode { Action = "GpsList", Controller = "Table", ShowChild = false });
     }
}
<div style="margin:5px 5px 5px 5px">
@using (Html.BeginForm("GpsEdit", "Table", Html.ViewContext.RouteData.Values,FormMethod.Post))
{
    @Html.AntiForgeryToken()
    <div id="edit-car" style="width:700px">

        <table class="edit-table">
            <tr>
                <td style="width: 120px; text-align: right;">*所属单位：</td>
                <td style="width:230px">@Html.DropDownListFor(a => a.DEPT_CODE, WebcarDataHelper.UserSuperDeptList, new { @style = "width: 100%;" })</td>
                <td style="width: 120px; text-align: right">*月份：</td>
                <td style="width:230px">@Html.TextBoxFor(a=>a.NY)</td>
            </tr>

            <tr>
                <td style="width: 120px; text-align: right">*GPS车载终端总数：</td>
                <td>@Html.TextBoxFor(a => a.TOTAL_GPS)</td>
                <td style="width: 120px; text-align: right">*超速报警车辆台数：</td>
                <td>@Html.TextBoxFor(a=>a.CS_CAR_NUM)</td>
            </tr>
            
            <tr>
                <td style="width: 120px; text-align: right">*超速报警次数：</td>
                <td>@Html.TextBoxFor(a => a.CS_NUM)</td>
                <td style="width: 120px; text-align: right">*越界报警车辆台数：</td>
                <td>@Html.TextBoxFor(a=>a.YJ_CAR_NUM)</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right">*超速被制止台数：</td>
                <td>@Html.TextBoxFor(a => a.CS_STOP_NUM)</td>
                <td style="width: 120px; text-align: right">*越界被制止台数：</td>
                <td>@Html.TextBoxFor(a=>a.YJ_STOP_NUM)</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right">*违规被处理台/人：</td>
                <td>@Html.TextBoxFor(a => a.CF_NUM)</td>
                <td style="width: 120px; text-align: right">*违规兼职人数：</td>
                <td>@Html.TextBoxFor(a=>a.CF_ZJ_NUM)</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right;">备注：</td>
                <td colspan="3">@Html.TextAreaFor(a => a.NOTE,5,30,new { @style = "width: 100%;" })</td>
            </tr>

        </table>
        <br />
        <div class="validation-errors">@ViewBag.ErrorMessage</div>
    </div>
    <table style="width:700px">
        <tr>
            <td style="width:650px"></td>
            <td>
                @Html.DevExpress().Button(settings =>
                {
                    settings.Name = "Button1";
                    settings.Text = CurrentUser.CheckPermission(PermissionManager.填写GPS统计表) ? "保存" : "无权限";
                    settings.Enabled = CurrentUser.CheckPermission(PermissionManager.填写GPS统计表);
                    settings.UseSubmitBehavior = true;
                    settings.Width = 70;
                    settings.ControlStyle.CssClass = "button1";
                }).GetHtml()

            </td>
            <td>
                @Html.DevExpress().Button(settings =>
                {
                    settings.ControlStyle.CssClass = "button2";
                    settings.Name = "Button2";
                    settings.Text = "取消";
                    settings.Width = 70;
                    settings.ClientSideEvents.Click = "function(s, e){history.back(); }";
                }).GetHtml()
            </td>
        </tr>

    </table>
}
</div>            